/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package servidorchat;

import java.io.IOException;
/**
 *
 * @author Administrador
 */
public class subTarea extends Thread{

    VentanaPrincipal frame;
    ServidorChat sc;
    public subTarea(VentanaPrincipal vp){
        frame = vp;
        sc = new ServidorChat(frame);
        start();
        
    }

    public void run(){
        System.out.println("asasssss");
        sc.inicializaServidor();
    }

    public void finServidor(){
        try{
            System.out.println("muere server");
            sc.pararServidor();
            
        }catch(IOException e){
            e.printStackTrace();
        }catch(Exception ex){
            ex.printStackTrace();
        }

    }
    
}
